<?php
  include 'DataBase/config.php';
// Create database
$con = mysql_connect(DB_HOST,DB_USER);
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }


$sql2 = DB_NAME;
if (mysql_query("CREATE DATABASE  $sql2",$con))
  {
  echo "Database created\n";
  }
else
  {
  echo "Error creating database: " . mysql_error();
  }
mysql_select_db(DB_NAME, $con) or die( "Unable to select database");
//create tables
include 'DataBase/tables.php';
//create packages
include 'DataBase/Packages/activity_pkg.php';
include 'DataBase/Packages/comment_pkg.php';
include 'DataBase/Packages/grade_pkg.php';
include 'DataBase/Packages/message_pkg.php';
include 'DataBase/Packages/region_pkg.php';
include 'DataBase/Packages/package_pkg.php';
include 'DataBase/Packages/town_pkg.php';
include 'DataBase/Packages/user_activity_pkg.php';
include 'DataBase/Packages/user_pkg.php';
 mysql_close($con);
?>
